<?php
echo '	function datetime($field, $value) {
		$setting = string2array($this->fields[$field][\'setting\']);
		if($setting[\'fieldtype\']==\'int\') {
			$value = strtotime($value);
		}
		return $value;
	}
?>